const joi = require('@hapi/joi')

const shop_id = joi.number().integer().min(1).required()
const shop_name = joi.string().required()
const shop_price = joi.string().required()
const shop_status = joi.string().required()
const shop_details = joi.string().required().allow('')
const shopping_id = joi.number().integer().min(1).required()
const shopping_status = joi.number().integer().required()

exports.add_shop_schema = {
  body:{
    shop_id
  }
}

exports.add_goods_schema = {
  body: {
    shop_name,
    shop_price,
    shop_status,
    shop_details
  }
}

exports.change_goods_status_schema = {
  body: {
    shopping_id,
    shopping_status
  }
}